﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Saker.Kernel.Model
{
    [Serializable]
    public class DepartTreeViewNode
    {

        public string id { get; set; }

        public bool isParent { get; set; }

        public string name { get; set; }

        public bool @checked { get; set; }

        public string icon { get; set; }

        public string iconOpen { get; set; }

        public string iconClose { get; set; }

        public List<DepartTreeViewNode> childs { get; set; }

        public DepartTreeViewNode()
            : this(string.Empty, false, string.Empty)
        {
        }
        public DepartTreeViewNode(string id, bool isParent, string name)
        {
            this.id = id;
            this.isParent = isParent;
            this.name = name;
            this.@checked = false;
            this.icon = string.Empty;
            this.iconOpen = string.Empty;
            this.iconClose = string.Empty;
            this.childs = new List<DepartTreeViewNode>();
        }
    }
}
